pet_0 = {
    'type': "cat",
    'owner': 'Alice'
}
pet_1 = {
    'type': "dog",
    'owner': 'Tom'
}
pet_2 = {
    'type': "hamster",
    'owner': 'Charlie'
}

pets = [pet_0, pet_1, pet_2]

for pet in pets:
    print(f"{pet['owner']} has a {pet['type']}")